<!DOCTYPE HTML>
<html lang="en" >
    <!-- Start book 我旳电子书 -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>css选择器 | 我旳电子书</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.9">
        <meta name="author" content="Melon">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-image-captions/image-captions.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/02css/float.html" />
    
    
    <link rel="prev" href="../../md/01html/01list.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="2"
        data-chapter-title="css选择器"
        data-filepath="md/02css/01selector.md"
        data-basepath="../.."
        data-revision="Tue Jun 09 2020 01:19:02 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/01html/HTML.html">
            
                
                    <a href="../../md/01html/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/01html/1lebel.html">
            
                
                    <a href="../../md/01html/1lebel.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        HTML标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/01html/01list.html">
            
                
                    <a href="../../md/01html/01list.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        列表标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2" data-path="md/02css/01selector.html">
            
                
                    <a href="../../md/02css/01selector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        css选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/02css/float.html">
            
                
                    <a href="../../md/02css/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/02css/background.html">
            
                
                    <a href="../../md/02css/background.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        背景属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/02css/position.html">
            
                
                    <a href="../../md/02css/position.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        position定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/02css/transfrom.html">
            
                
                    <a href="../../md/02css/transfrom.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        transfrom变形
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="md/02css/transition.html">
            
                
                    <a href="../../md/02css/transition.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        transition过渡
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="md/02css/flex.html">
            
                
                    <a href="../../md/02css/flex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        flex弹性盒子
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="md/02css/textattr.html">
            
                
                    <a href="../../md/02css/textattr.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        textattr文本属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="md/02css/git.html">
            
                
                    <a href="../../md/02css/git.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        git四步骤
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >我旳电子书</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css">CSS</h1>
<h3 id="css&#x5168;&#x7A0B;-&#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;">css:&#x5168;&#x7A0B; &#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;</h3>
<ul>
<li>&#x4F5C;&#x7528;&#xFF1A;&#x7F8E;&#x5316;&#x9875;&#x9762;  &#x7F51;&#x9875;&#x5316;&#x5986;&#x5E08;</li>
<li>&#x76EE;&#x7684;&#xFF1A;&#x884C;&#x4E3A; &#x8868;&#x73B0;&#x5206;&#x79BB;   &#x884C;&#x4E3A;-&gt;&#x7ED3;&#x6784; HTML&#x6807;&#x7B7E;  &#x8868;&#x73B0;-&gt;css<h2 id="&#x9009;&#x62E9;&#x5668;">&#x9009;&#x62E9;&#x5668;</h2>
<pre><code>  {
      &#x6837;&#x5F0F;1&#x5C5E;&#x6027;&#xFF1A;&#x5C5E;&#x6027;&#x503C;&#xFF1B;
      &#x6837;&#x5F0F;2&#x5C5E;&#x6027;&#xFF1A;&#x5C5E;&#x6027;&#x503C;&#xFF1B;
  }
</code></pre></li>
<li><p>&#x5F3A;&#x8C03;&#xFF1A;&#x5206;&#x53F7;&#x548C;&#x5192;&#x53F7;&#x4E00;&#x5B9A;&#x8981;&#x7528;&#x82F1;&#x6587;</p>
</li>
<li><p>css&#x5F15;&#x5165;&#x65B9;&#x5F0F;</p>
<ol>
<li>&#x884C;&#x5185;&#x6837;&#x5F0F;(&#x901A;&#x8FC7;style&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;css&#x6837;&#x5F0F;)</li>
<li>&#x9875;&#x5185;&#x5F15;&#x5165;(&#x5728;head&#x91CC;&#x5F00;&#x8F9F;style,&#x8BBE;&#x7F6E;css&#x6837;&#x5F0F;)</li>
<li>&#x9875;&#x5916;&#x5F15;&#x5165;<!-- <link rel="stylesheet" type="text/css" href="css文件路径"/> --></li>
</ol>
</li>
</ul>
<ul>
<li>&#x4F18;&#x5148;&#x7EA7;&#xFF1A;&#x5C31;&#x8FD1;&#x539F;&#x5219;  &#x884C;&#x5185;&gt;&#x9875;&#x5185;&gt;&#x9875;&#x5916;</li>
<li><p>css&#x57FA;&#x672C;&#x9009;&#x62E9;&#x5668;</p>
<pre><code>  1.&#x5143;&#x7D20;&#x9009;&#x62E9;&#x5668;&#xFF08;&#x6807;&#x7B7E;&#x9009;&#x62E9;&#x5668;&#xFF09;
      &#x901A;&#x8FC7;html&#x6807;&#x7B7E;&#x540D;&#x53BB;&#x9009;&#x62E9;&#x5230;&#x6240;&#x6709;&#x5339;&#x914D;&#x7684;&#x5143;&#x7D20;
  2.&#x7C7B;&#x540D;&#x9009;&#x62E9;&#x5668;
      &#x901A;&#x8FC7;.&#x8FD9;&#x4E2A;&#x7B26;&#x53F7;&#x52A0;&#x4E0A;&#x7C7B;&#x540D;&#x7EC4;&#x5408;&#x800C;&#x6210;
  3.id&#x9009;&#x62E9;&#x5668;
      &#x901A;&#x8FC7;#&#x52A0;&#x4E0A;id&#x540D;&#x7EC4;&#x5408;&#x800C;&#x6210;
      id&#x53EA;&#x7528;&#x5728;&#x79C3;&#x9876;&#x7684;&#x4E00;&#x4E2A;&#x6807;&#x7B7E;&#x4E2D;
      class&#x5219;&#x53EF;&#x4EE5;&#x6279;&#x91CF;&#x7684;&#x4F7F;&#x7528;
  4.&#x5173;&#x7CFB;&#x9009;&#x62E9;&#x5668;
      1.&#x5B50;&#x5B59;&#x9009;&#x62E9;&#x5668; A B &#x9009;&#x62E9;A&#x4E2D;&#x6240;&#x6709;B&#x7684;&#x5143;&#x7D20;
      2.&#x76F8;&#x90BB;&#x9009;&#x62E9;&#x5668; A+B &#x9009;&#x62E9;A&#x76F8;&#x90BB;&#x7684;&#x5143;&#x7D20;
      3.&#x7236;&#x5B50;&#x9009;&#x62E9;&#x5668; A&gt;B &#x9009;&#x62E9;A&#x4E2D;B&#x6807;&#x7B7E;
      4.&#x5144;&#x5F1F;&#x9009;&#x62E9;&#x5668; A~B &#x9009;&#x62E9;A&#x5E76;&#x5217;&#x7684;B&#x6807;&#x7B7E;
</code></pre></li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/01html/01list.html" class="navigation navigation-prev " aria-label="Previous page: 列表标签"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/02css/float.html" class="navigation navigation-next " aria-label="Next page: 浮动"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"image-captions":{"attributes":{"style":"left: 50%;position: relative;transform: translateX(-50%);"},"caption":"图 _PAGE_LEVEL_._PAGE_IMAGE_NUMBER_ - _CAPTION_","align":"center","variable_name":"_pictures"},"fontsettings":{"theme":"night","family":"sans","size":2},"toggle-chapters":{},"highlight":{}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book 我旳电子书 -->
</html>
